package com.lsl.factory_method.example.idcard;

import com.lsl.factory_method.example.framework.Product;

/**
 * ConcreteProduct(具体的产品)
 * <p>
 * 产品Product的子类
 *
 * @author Zed
 * @description
 * @date 2022/11/1 21:15
 */
public class IDCard extends Product {
    private String owner;

    public IDCard(String owner) {
        System.out.println("制作" + owner + "的ID卡");
        this.owner = owner;
    }

    @Override
    public void use() {
        System.out.println("使用" + owner + "的ID卡");
    }

    public String getOwner() {
        return owner;
    }
}
